﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo12
{
    class Student
    {
        //学生类：学号、姓名、年龄
        public int no { get; set; }
        public string name { get; set; }
        public int age { get; set; }

        public Student(int no,string name,int age) {
            this.no = no;
            this.name = name;
            this.age = age;
        }

        public void stuInfo() {
            Console.WriteLine("学号{0},姓名{1},年龄{2}",this.no,this.name,this.age);
        }
    }
}
